package com.ruoyi.ring.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 血氧详情对象 az_ring_blood_oxygen_detail
 * 
 * @author liuwp
 * @date 2025-09-03
 */
@Data
public class RingBloodOxygenDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备sn */
    @Excel(name = "设备sn")
    private String deviceSn;

    /** 计算日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计算日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dailyValue;

    /** 血氧值 */
    @Excel(name = "血氧值")
    private Integer bloodOxygen;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceSn", getDeviceSn())
            .append("dailyValue", getDailyValue())
            .append("bloodOxygen", getBloodOxygen())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
